import IMG1 from '../../imgs/办公楼.svg'
import IMG2 from '../../imgs/原水提升泵房.svg'
import IMG3 from '../../imgs/应急加药间.svg'
import IMG4 from '../../imgs/臭氧间.svg'
import IMG5 from '../../imgs/格栅臭氧池.svg'
import IMG6 from '../../imgs/综合加药间.svg'
import IMG7 from '../../imgs/库房.svg'
import IMG8 from '../../imgs/维修车间.svg'
import IMG9 from '../../imgs/门卫.svg'
import IMG10 from '../../imgs/锅炉房.svg'
import IMG11 from '../../imgs/污泥浓缩车间.svg'
import IMG12 from '../../imgs/综合楼.svg'
import IMG13 from '../../imgs/常规处理车间.svg'
import IMG14 from '../../imgs/吸水井及二级泵房.svg'
import IMG15 from '../../imgs/脱水机房.svg'

export const config = [
  {
    type: '常规处理车间001', // 面积
    name: '常规处理车间',
    imgUrl: IMG13,
    idName: '常规处理车间001',
    iconId: 'RS2图标007'
  },
  {
    type: '综合加药间001',
    name: '综合加药间',
    imgUrl: IMG6,
    idName: '综合加药间001',
    iconId: 'RS2图标006'
  },
  {
    type: '综合楼',
    name: '综合楼',
    idName: '综合楼',
    imgUrl: IMG12,
    iconId: 'RS2图标004'
  },
  {
    type: '吸水井及二级泵房',
    name: '吸水井及二级泵房',
    iconId: 'RS2图标005',
    imgUrl: IMG14,
    wallGroup: ['立方体268_1', '立方体268_2', '立方体268_5', '立方体268_3'],
    idName: '吸水井泵站'
  },
  {
    type: '原水提升泵房',
    name: '原水提升泵房',
    imgUrl: IMG2,
    idName: '原水提升泵房',
    iconId: 'RS2图标010'
  },
  {
    type: '应急加药间',
    name: '应急加药间',
    imgUrl: IMG3,
    idName: '应急加药间001',
    iconId: 'RS2图标014'
  },
  {
    type: '格栅臭氧池',
    name: '格栅臭氧池',
    imgUrl: IMG5,
    idName: '格栅臭氧池',
    iconId: 'RS2图标009'
  },
  {
    type: '脱水机房',
    name: '脱水机房',
    imgUrl: IMG15,
    idName: '脱水机房003',
    iconId: 'RS2图标008'
  },
  {
    type: '臭氧间',
    name: '臭氧间',
    imgUrl: IMG4,
    idName: '臭氧间001',
    iconId: 'RS2图标003'
  },
  {
    type: '污泥浓缩车间',
    name: '污泥浓缩车间',
    iconId: 'RS2图标002',
    imgUrl: IMG11,
    idName: '污泥浓缩车间'
  },
  {
    type: '锅炉房',
    name: '锅炉房',
    imgUrl: IMG10,
    idName: '锅炉房',
    iconId: 'RS2图标001'
  },
  {
    type: '办公楼',
    name: '办公楼',
    imgUrl: IMG1,
    idName: '办公楼',
    iconId: 'RS2图标011'
  },
  {
    type: '库房',
    name: '库房',
    imgUrl: IMG7,
    idName: '库房',
    iconId: 'RS2图标012'
  },
  {
    type: '维修车间',
    name: '维修车间',
    imgUrl: IMG8,
    idName: '维修车间',
    iconId: 'RS2图标013'
  },
  {
    type: '门卫',
    name: '门卫',
    imgUrl: IMG9,
    idName: '门卫',
    iconId: 'RS2图标015'
  }
]
// 建筑物图标配置
export const buildingIconConfig = config.map((item) => {
  return {
    name: item.name,
    idName: item.idName,
    show: false
  }
})
export const viewConfig = {
  常规处理车间: {
    controlState: [
      {
        viewpoints: {
          tx: -131.9093632397268,
          ty: 1.9534800456212607,
          tz: 24.426850556440616,
          px: -253.9690369889368,
          py: 33.81699464594311,
          pz: 56.50154526444993
        },
        duration: 3
      },
      {
        viewpoints: {
          tx: -139.2220388954896,
          ty: -15.502523106445821,
          tz: 23.274602329073776,
          px: -207.93955695478724,
          py: -1.9974281303126489,
          pz: 29.799791062009042
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -136.73059681718127,
          ty: -12.967511477633593,
          tz: 21.971512910509627,
          px: -184.00929643542338,
          py: -2.7924790901385848,
          pz: 30.55941977562275
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -134.50223672980482,
          ty: -4.537239985910463,
          tz: 25.36939280770488,
          px: -180.89207005820978,
          py: 10.767299085895289,
          pz: 30.499043240705433
        },
        duration: 2
      }
    ],
    startControlState: {
      tx: -139.2220388954896,
      ty: -15.502523106445821,
      tz: 23.274602329073776,
      px: -207.93955695478724,
      py: -1.9974281303126489,
      pz: 29.799791062009042
    },
    endControlState: {
      tx: -134.50223672980482,
      ty: -4.537239985910463,
      tz: 25.36939280770488,
      px: -180.89207005820978,
      py: 10.767299085895289,
      pz: 30.499043240705433
    },
    doors: [
      {
        name: '常规处理车间房门左',
        idName: '常规车间门9左',
        rotate: 1.5,
        // 旋转轴
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      },
      {
        name: '常规处理车间房门右',
        idName: '常规车间门9右',
        rotate: -1.5,
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      }
    ]
  },
  吸水井及二级泵房: {
    startControlState: {
      tx: -73.98892022278135,
      ty: -21.193248437373146,
      tz: 29.394949869479017,
      px: 25.92770300766442,
      py: -2.0785479495130517,
      pz: 23.066083344588776
    },
    endControlState: {
      tx: 0.4761333385737212,
      ty: -13.91243121209449,
      tz: 27.589798835937895,
      px: 18.33570420738302,
      py: -0.47901348310772995,
      pz: 11.965572728317289
    },
    doors: [
      {
        name: '吸水井及二级泵房门右',
        idName: '吸水井及二级泵房门1右',
        rotate: -1.5,
        // 旋转轴
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      },
      {
        name: '吸水井及二级泵房门左',
        idName: '吸水井及二级泵房门1左',
        rotate: 1.5,
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      }
    ]
  },
  门卫: {
    controlState: {
      tx: 31.775174721736537,
      ty: -2.6526145037390036,
      tz: -53.79806949739604,
      px: 37.774755024358186,
      py: -0.22524264997828025,
      pz: -72.63506829538287
    }
  },
  综合楼: {
    controlState: {
      tx: -25.15091416535104,
      ty: 2.608713150024414,
      tz: -30.23906942485561,
      px: -31.71876403410792,
      py: 35.576005002319846,
      pz: -110.9978677359619
    }
  },
  综合加药间: {
    controlState: [
      {
        viewpoints: {
          tx: -67.64228856898362,
          ty: -0.4998237908136686,
          tz: 26.267580648456907,
          px: -86.95331402406444,
          py: 2.6276014980019133,
          pz: 28.938293349204034
        },
        duration: 3
      },
      {
        viewpoints: {
          tx: -59.15933791694662,
          ty: -3.27413894257066,
          tz: 25.91261025526102,
          px: -71.43460366767715,
          py: -1.4987626699195868,
          pz: 26.918408242818455
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -59.136375032556366,
          ty: -3.332623451903299,
          tz: 26.29609433780188,
          px: -61.77112290036425,
          py: -2.951558883207853,
          pz: 26.5119775746275
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -56.86711058676108,
          ty: -4.669072220475258,
          tz: 28.23287676634897,
          px: -51.7940562923254,
          py: -0.6808787736526729,
          pz: 41.2331295913645
        },
        duration: 2
      }
    ],
    startControlState: {
      tx: -57.134417184601325,
      ty: -3.5048412528859205,
      tz: 26.152477683510597,
      px: -67.31143890694347,
      py: -3.4842744889900983,
      pz: 26.616058458058866
    },
    endControlState: {
      tx: -56.86711058676108,
      ty: -4.669072220475258,
      tz: 28.23287676634897,
      px: -51.7940562923254,
      py: -0.6808787736526729,
      pz: 41.2331295913645
    },
    doors: [
      {
        name: '综合加药间门左',
        idName: '综合加药间门4左',
        rotate: 1.5,
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      },
      {
        name: '综合加药间门右',
        idName: '综合加药间门4右',
        rotate: -1.5,
        axis: 'y',
        // 延迟时间
        delay: 0,
        // 执行时间
        duration: 1
      }
    ]
  },
  库房: {
    controlState: {
      tx: 4.648572890581991,
      ty: -4.182388376199491,
      tz: -113.54887806460438,
      px: 66.29810447978525,
      py: 15.35384071145473,
      pz: -94.25262933370888
    }
  },
  维修车间: {
    controlState: {
      tx: -158.63584951448735,
      ty: 15.921327528478376,
      tz: -181.0809371219033,
      px: -126.74098844791502,
      py: 31.62879220498067,
      pz: -208.87531097570272
    }
  },
  办公楼: {
    controlState: {
      tx: -70.6767040913383,
      ty: 5.1185636826160525,
      tz: -119.0946163458388,
      px: 61.93575903119627,
      py: 53.725410864187154,
      pz: -176.36559393113143
    }
  },
  锅炉房: {
    controlState: {
      tx: -95.87431366981791,
      ty: -0.9960074424743651,
      tz: -52.07672517522933,
      px: -73.81786475006919,
      py: 21.55702136849956,
      pz: -9.623271669227734
    }
  },
  原水提升泵房: {
    controlState: [
      {
        viewpoints: {
          tx: -211.50242841502214,
          ty: -6.441343480234726,
          tz: 74.96639333214593,
          px: -260.6439919105651,
          py: 16.270881442372925,
          pz: 95.9640891988075
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -211.30782422066042,
          ty: -4.536566820937998,
          tz: 76.77131664947514,
          px: -245.98985727707537,
          py: -2.1203370133767843, // 调整了 Y 轴的位置
          pz: 76.8383257983452
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -211.27996427064315,
          ty: -4.194969976034683,
          tz: 77.49967765636853,
          px: -228.18391238276033,
          py: -2.885956727847808,
          pz: 77.53233777100756
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -213.07437758473907,
          ty: -12.977582012976839,
          tz: 75.21211280157544,
          px: -228.2997368696968,
          py: -7.722914457309034,
          pz: 75.12386109635482
        },
        duration: 2
      }
    ],
   /* target: {"x":-212.92272746027027,"y":-5.337953380246716,"z":74.68248579021525}
    index.vue:245 position: {"x":-235.11083109717404,"y":-2.542592020800122,"z":77.91689524926993}*/
    startControlState:  {
      tx: -212.92272746027027,
      ty: -5.337953380246716,
      tz: 74.68248579021525,
      px: -235.11083109717404,
      py: -2.542592020800122,
      pz: 77.91689524926993
    },
    endControlState: {
      tx: -213.07437758473907,
      ty: -12.977582012976839,
      tz: 75.21211280157544,
      px: -228.2997368696968,
      py: -7.722914457309034,
      pz: 75.12386109635482
    },
    doors: [
      {
        name: '原水泵房门左',
        idName: '原水泵房门3左',
        rotate: 1.5,
        axis: 'y',
        delay: 0,
        duration: 1
      },
      {
        name: '原水泵房门右',
        idName: '原水泵房门3右',
        rotate: -1.5,
        axis: 'y',
        delay: 0,
        duration: 1
      }
    ]
  },
  格栅臭氧池: {
    controlState: [
      {
        viewpoints: {
          tx: -205.73170557445482,
          ty: -3.038752592202092,
          tz: 47.19056627311394,
          px: -173.77925286963696,
          py: 23.528819109676895,
          pz: 93.61439336880929
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -220.4041135563806,
          ty: -2.467404061758149,
          tz: 48.1591229546059,
          px: -233.03644530013625,
          py: -1.6824210483615274,
          pz: 49.26021000018584
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -220.12817214870387,
          ty: -2.520614194653937,
          tz: 50.51802974236807,
          px: -221.80541550283183,
          py: -2.26915970992174,
          pz: 50.795984144858146
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -210.41635145026112,
          ty: 1.3785774399830293,
          tz: 44.69757519432944,
          px: -202.49728691357765,
          py: 4.585659957896356,
          pz: 49.55985992539578
        },
        duration: 2
      }
    ],
    startControlState: {
      tx: -220.4041135563806,
      ty: -2.467404061758149,
      tz: 48.1591229546059,
      px: -233.03644530013625,
      py: -1.6824210483615274,
      pz: 49.26021000018584
    },
    endControlState: {
      tx: -210.41635145026112,
      ty: 1.3785774399830293,
      tz: 44.69757519432944,
      px: -202.49728691357765,
      py: 4.585659957896356,
      pz: 49.55985992539578
    },
    doors: [
      {
        name: '格栅臭氧池门左',
        idName: '格栅臭氧池门左',
        rotate: 1.5,
        axis: 'y',
        delay: 0,
        duration:1
      },
      {
        name: '格栅臭氧池门右',
        idName: '格栅臭氧池门右',
        rotate: -1.5,
        axis: 'y',
        delay:0,
        duration: 1
      }
    ]
  },
  应急加药间: {
    controlState: {
      tx: -244.57577148280697,
      ty: 0.4098031350731853,
      tz: 90.41837956178809,
      px: -219.87354202622748,
      py: 8.007243761859243,
      pz: 94.68406727692205
    }
  },
  脱水机房: {
    controlState: [
      {
        viewpoints: {
          tx: -215.4836642804971,
          ty: -3.7188199670651096,
          tz: 3.346091966583316,
          px: -174.339948077433,
          py: 17.03988517569971,
          pz: -8.727538943753636
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -214.82625876662576,
          ty: -3.8809531682253264,
          tz: -5.5295496164637425,
          px: -197.99767180470442,
          py: -1.07722954558619,
          pz: -6.301795369948586
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -214.85027797828135,
          ty: -3.6040341252508004,
          tz: -5.047585075301496,
          px: -208.06140663445515,
          py: -1.4663544135835411,
          pz: -5.622605289779234
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -211.38609740825626,
          ty: -2.640348872661014,
          tz: -4.270926309125851,
          px: -208.91912486729666,
          py: 2.0497804040746663,
          pz: -13.63936766691929
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -218.2824144389393,
          ty: -1.3379645807781688,
          tz: -6.39236450656257,
          px: -220.0715128697346,
          py: 1.9245326509379768,
          pz: -14.33044564859421
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -217.61081515471227,
          ty: 3.868956063153019,
          tz: -3.69318624781462,
          px: -222.3219340937091,
          py: 6.653956984372441,
          pz: -11.71879929487355
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -217.39735522592474,
          ty: 2.3954792820079542,
          tz: 11.75734813771144,
          px: -212.31329116642814,
          py: 8.115924611120338,
          pz: 26.06296495876073
        },
        duration: 2
      }
    ],
    startControlState: {
      tx: -214.82625876662576,
      ty: -3.8809531682253264,
      tz: -5.5295496164637425,
      px: -197.99767180470442,
      py: -1.07722954558619,
      pz: -6.301795369948586
    },
    endControlState: {
      tx: -217.39735522592474,
      ty: 2.3954792820079542,
      tz: 11.75734813771144,
      px: -212.31329116642814,
      py: 8.115924611120338,
      pz: 26.06296495876073
    },
    doors: [
      {
        name: '脱水机房门左',
        idName: '脱水车间门1左',
        rotate: 2,
        axis: 'y',
        delay: 0,
        duration:1
      },
      {
        name: '脱水机房门右',
        idName: '脱水车间门1右',
        rotate: -2,
        axis: 'y',
        delay: 0,
        duration: 1
      }
    ]
  },
  臭氧间: {
    controlState: [
      {
        viewpoints: {
          tx: -136.3960074385273,
          ty: -3.033537375572473,
          tz: -1.1069395607021857,
          px: -130.92855657730763,
          py: 9.950583751559329,
          pz: 13.700999442478047
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -141.69724561580156,
          ty: -3.4193755566912065,
          tz: -8.906896311778684,
          px: -140.97819374225614,
          py: -2.8502729669911693,
          pz: 3.3361876224233065
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -140.7300344552106,
          ty: -3.199952445829379,
          tz: -8.973901427661039,
          px: -140.24847154432408,
          py: -2.6771714924858125,
          pz: -5.817606838926336
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -140.59337556607483,
          ty: -2.818503698853167,
          tz: -8.842983386124624,
          px: -143.63969284052436,
          py: -0.5565214804643808,
          pz: -6.184549695828233
        },
        duration: 2
      }
    ],
    startControlState:  {
      tx: -141.69724561580156,
      ty: -3.4193755566912065,
      tz: -8.906896311778684,
      px: -140.97819374225614,
      py: -2.8502729669911693,
      pz: 3.3361876224233065
    },
    endControlState:  {
      tx: -140.59337556607483,
      ty: -2.818503698853167,
      tz: -8.842983386124624,
      px: -144.14397227071439,
      py: -1.8480222592280224,
      pz: -6.029567136266381
    },
    doors: [
      {
        name: '臭氧间',
        idName: '臭氧间3门',
        rotate: 1.5,
        axis: 'y',
        delay: 0,
        duration: 1
      }
    ]
  },
  污泥浓缩车间: {
    controlState: [
      {
        viewpoints: {
          tx: -113.69239644944074,
          ty: -23.47124518848946,
          tz: -48.278467419856106,
          px: -65.34635484058435,
          py: 22.708516292775986,
          pz: 28.65558190415721
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -113.45598750223576,
          ty: -15.143187784964162,
          tz: -49.24015226429207,
          px: -109.72349842717703,
          py: -1.0197796787267333,
          pz: 6.8643002346890185
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -110.12946734440703,
          ty: -12.592342636574537,
          tz: -50.103592241617584,
          px: -107.38574489348497,
          py: -2.2103398696920316,
          pz: -8.861664181661133
        },
        duration: 2
      },
      {
        viewpoints: {
          tx: -86.4394131493525,
          ty: -9.834949623814849,
          tz: -39.505537154324585,
          px: -109.20953286459007,
          py: 7.089419364168629,
          pz: -7.704625108375307
        },
        duration: 2
      }
    ],
    /*target: {"x":-115.09519520733488,"y":-7.690530648635668,"z":-39.351590020118515}
index.vue:245 position: {"x":-107.82932360437856,"y":-1.3742476161770263,"z":2.8418570111998633}*/
    startControlState:{
      tx: -115.09519520733488,
      ty: -7.690530648635668,
      tz: -39.351590020118515,
      px: -107.82932360437856,
      py: -1.3742476161770263,
      pz: 2.8418570111998633
    },
    endControlState: {
      tx: -86.4394131493525,
      ty: -9.834949623814849,
      tz: -39.505537154324585,
      px: -109.20953286459007,
      py: 7.089419364168629,
      pz: -7.704625108375307
    },
    doors: [
      {
        name: '污泥车间门2左',
        idName: '污泥车间门2左',
        rotate: 1.5,
        axis: 'y',
        delay: 0,
        duration: 1
      },
      {
        name: '污泥车间门2右',
        idName: '污泥车间门2右',
        rotate: -1.5,
        axis: 'y',
        delay:0,
        duration: 1
      }
    ]
  }
}
